package com.xbell.app.sys.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.client.circuitbreaker.NoFallbackAvailableException;
import org.springframework.stereotype.Component;

import com.xbell.app.sys.common.PageInfo;
import com.xbell.app.sys.common.ResponseMessage;

@Component
public class UserServiceCallback implements UserService {
	
	Logger logger = LoggerFactory.getLogger(getClass());

	@Override
	public String addUser(String userid, String pwd, String say) {
		return null;
	}

	@Override
	public String delUser(String userid, String say) {
		return null;
	}

	@Override
	public String getUer(String userid, String say) {
		return null;
	}

	@Override
	public Object allLogs(PageInfo pg, String title) {
		throw new NoFallbackAvailableException("Boom!", new RuntimeException());
	}

	@Override
	public ResponseMessage<Object> delLog(String id) {
		throw new NoFallbackAvailableException("Boom!", new RuntimeException());
	}
	
}
